-
Notifications
You must be signed in to change notification settings - Fork 964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload unfinished job/step logs from runner on cancellation timeout #255
Conversation
@@ -40,7 +39,6 @@ public override void Initialize(IHostContext hostContext) | |||
{ | |||
base.Initialize(hostContext); | |||
_totalLines = 0; | |||
_pageId = Guid.NewGuid().ToString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't really need a new guid for each page, we can leverage the timeline record id for each steps, those are already unique per step.
|
||
try | ||
{ | ||
var systemConnection = message.Resources.Endpoints.SingleOrDefault(x => string.Equals(x.Name, WellKnownServiceEndpointNames.SystemVssConnection)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pull the cred from the job message, we will use this cred to talk to actions service and upload the log.
} | ||
|
||
var record = timeline.Records.FirstOrDefault(x => x.Id == logRecordId); | ||
if (record != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only upload log files to timeline records for this job.
239f300
to
5640409
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Clean
#254